<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
        <title>日志</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <link rel="stylesheet" href="../lib/layui/css/layui.css">
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
    <script src="../lib/axios.min.js"></script>
    <script src="../lib/FileSaver.min.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="layui-fluid">
      <div class="layui-row" style="margin: 0 auto;">
        <form class="layui-form" style="float:left;margin-left:24%;margin-top: 5px;">
          <div class="layui-input-inline layui-col3 layui-form-item" id="view" style="width:240px; margin-top: 16px;"></div>
          <div class="layui-input-inline layui-col6">
            <input class="layui-input search-data-input" placeholder="请输入关键词" name="word" style="width: 350px;" style="width:240px; height: 700px;"></input>
          </div>
          
            <button class="layui-btn layui-btn-small" id="clickme" title="检索" lay-filter="find" lay-submit="" style="line-height:1.4em;margin-left:7px;">
                <i class="layui-icon layui-icon-search" style="line-height:30px"></i>
            </button>
          
        </form>
      </div>
      <div class="layui-row">
        <div class="layui-input-block">
          <textarea id="view_" style="display: none;"></textarea>
        </div>
      </div>
    </div>
    <script type="text/html" id="demo">
      <select name="record" class="layui-input" lay-filter="brickType">
        {{#  layui.each(records, function(index, item){ }}
        <option value="{{item.title}}">{{item.title}}</option>
        {{#  }); }}
        {{#  if(records.length === 0){ }}
        无数据
        {{#  } }}
      </select>
    </script>
    <script>
      var records = [
        {title:"ceshi1"},
        {title:"ceshi2"}];
      layui.use(['laytpl','form', 'layedit'], function(){
        var laytpl = layui.laytpl
        ,layedit = layui.layedit
        ,form = layui.form
        ,getTpl = demo.innerHTML
        ,view = document.getElementById('view');
        layedit.build('view_', {
          height: 540
        });
        laytpl(getTpl).render(records, function(html){
            view.innerHTML = html;
        });
        form.render('select');
      })
    </script>
</body>
</html>